package net.chenlin.dp.modules.newBusiness.service;

import net.chenlin.dp.common.entity.Page;
import net.chenlin.dp.common.entity.R;
import net.chenlin.dp.modules.newBusiness.entity.dto.DistrictTopologyDto;
import net.chenlin.dp.modules.newBusiness.entity.dto.NewDistrictDto;
import net.chenlin.dp.modules.newBusiness.entity.vo.DeviceUsersDataVo;
import net.chenlin.dp.modules.newBusiness.entity.vo.NewDistrictListVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * @Author: Yansgm
 * @Description:
 * @Date: 2025-04-01 17:51:15
 */
public interface NewDistrictManageService {

    R getAllDistrict(String name);

    Page<NewDistrictListVo> getNewDistrictList(Map<String, Object> params);

    R creatDistrict(NewDistrictDto dto);

    R editDistrict(NewDistrictDto dto);

    R deleteDistrict(Integer id);

    R creatTopologyNode(DistrictTopologyDto dto);

    R editTopologyNode(DistrictTopologyDto dto);

    R deleteTopologyNode(Integer nodeId);

    R getNextTopologNode(Integer nodeId);

    R getTree(Integer districtId);

    R getTopologyList(Integer districtId);

    R getDistrictInfo(Integer id);

    void deviceExcel(MultipartFile file,Long districtId) throws Exception;

    Page<DeviceUsersDataVo> getDeviceUserList(Map<String, Object> params);

    R getDistrictOnline(Integer id);

    void importUserData(MultipartFile file,Long districtId) throws Exception;
}
